
export default {
  StoreAlbum: {
    entity: { name: 'Album', prefix: () => `store/${localStorage.getItem('storeId')}` },
    list: {
      disabled_actions: ['delete'],
      list_display: [
        'store',
        // 'title',
        { property: 'type', label: '模块' },
      ]
    },
    form: {
      fields: [
        'store',
        'title',
        'type',
        'listOrder',
        {
          property: 'pictures', default_value: [],
          help: '轮播图比例800x970；弹窗图尺寸比例：533x700；中间小图尺寸比例：800x250；底部图片比例不限',
          type_options: {
            fields: [
              { property: 'image', type: 'image', field_options: { label: '图片' } },
              { property: 'link', type: 'input', field_options: { label: '链接' } },
              { property: 'listOrder', type: 'input', field_options: { label: '序号' } }
            ]
          }
        },
      ]
    }
  }
}
